package myNetty.action6;

import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;

/**
 * @author tonywang
 * @date 7/25/2018
 */
public class ChannelPipelineCRUD extends ChannelInitializer {
    @Override
    protected void initChannel(Channel ch) throws Exception {
//        ChannelPipeline pipeline = ch.pipeline();
//        FirstHandler firstHandler = new FirstHandler();
//        pipeline.addLast("handler1", firstHandler);
//        pipeline.addFirst("handler2", new SecondHandler());
//        pipeline.addLast("handler3", new ThirdHandler());
//        pipeline.remove("handler3");
//        pipeline.remove(firstHandler);
//        pipeline.replace("handler2", "handler4", new FourthHandler());
    }
}
